home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Panorama / Panorama - Disk 30B (1988-06-08)(Pacific North-West Amigas Club)[WB].zip / Panorama - Disk 30B (1988-06-08)(Pacific North-West Amigas Club)[WB].adf / CLI / PrtSpool / Manual.doc next >
Text File  |  1988-06-04  |  19KB  |  211 lines

  1. Rx1rP
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                GUser's GuideHGH
  8.                                            GH                             G-1Print-0 and -1Spooler-0HGH
  9.                                               GH               GThe AmigaDOS Background Print Spooling SystemHGH
  10.                                                             
  11.                                                             
  12.                                                                  G-1Introduction-0H
  13.                  
  14.                            The Amiga family of super personal computers from Commodore-
  15.                                                                                 Amiga are  basically wonderful  systems. Here  at 4SC, we've
  16.                                                                                 used Amigas  for two  and a  half years. There was one thing
  17.                                                                                 that always bugged us, though. Every time we wanted to print
  18.                                                                                 a file  out, we  had to  enter a  command such  as "Run Copy
  19.                                                                                 filename to PRT:", then had to wait until that file was done
  20.                                                                                 printing  before  we  could  print another one. So, the boss
  21.                                                                                 said, "My programmers, thou shalt devise and build  for me a
  22.                                                                                 Print  Spooler,  so  that  I  may  print files to my heart's
  23.                                                                                 content." Well, we did it, and here it is!
  24.                                                     
  25.                                                               The package consists of two programs.  The first  program is
  26.                                                                                 simply called  "Print". Its  job is  to submit  files to the
  27.                                                                                 print queue and to  report the  print queue's  status to the
  28.                                                                                 user.  The  second  program  is  called  "Spooler",  and  is
  29.                                                                                 designed to  be run  from the  AmigaDOS CLI  as a background
  30.                                                                                 task (by  using the  "Run" command).  It actually prints out
  31.                                                                                 the files in the print queue.
  32.                                        
  33.                                                  These programs are being  released  as  "ShareWare", meaning
  34.                                                                                 that we  don't ask for money up front. Use the programs, and
  35.                                                                                 if you feel that  they are  useful to  you, send  us a small
  36.                                                                                 stipend. The  gremlins here at 4SC think that $25.00 U.S. is
  37.                                                                                 adequate. If you think that's too much, well,  OK. Just send
  38.                                                                                 us  what  you  think  is  appropriate.  In  either case, our
  39.                                                                                 address is:
  40.                      
  41.                                      Small Scale Systems of Southern California
  42.                                                                                      10447-1 Larwin Avenue
  43.                                                                            Chatsworth, CA  91311
  44.                                                                          United States of America
  45.                                                  
  46.                                                            Heck, you  can even  send us  complaints or  comments if you
  47.                                                                                 wish. Of course, compliments are always welcome!
  48.                                                           
  49.  
  50.  
  51.  
  52.  
  53.  
  54.      G-1Installation-0H
  55.                  
  56.                            Installing the system is a fairly straight forward, two-step
  57.                                                                                 process:
  58.                   
  59.                             GStep 1:H   Copy the two programs to your "C:" directory (or a
  60.                                                                                           directory which is on your executable path).
  61.                                                                 
  62.                                                                           GStep 2:H   Modify your  Startup-Sequence file  to include the
  63.                                                                                           following two lines:
  64.                                         
  65.                                                                  Assign SPOOL: <directory of your choice>
  66.                                                                                           Run Spooler
  67.                                     
  68.                                                         The first line associates the SPOOL: device with a
  69.                                                                                           directory of  your choice. This directory is where
  70.                                                                                           GPrintH puts the printer queue data  file, and where
  71.                                                                                           GSpoolerH expects  to find  it. An ideal place is in
  72.                                                                                           the RAM: device, so the command would be:
  73.                                                              
  74.                                                                                       Assign SPOOL: RAM:
  75.                                            
  76.                                                                The second line runs the print spooling program as
  77.                                                                                           a background  task. Once  GSpoolerH is  running as a
  78.                                                                                           task, you never need to worry  about it.  It stays
  79.                                                                                           there forever.  You can,  of course, get out of it
  80.                                                                                           by using the  GStatusH  command  to  see  which task
  81.                                                                                           GSpoolerH is, then use the GBreakH command to halt the
  82.                                                                                           program. After a few  seconds  (maybe  15  or so),
  83.                                                                                           AmigaDOS  will  display  a requester. Click on the
  84.                                                                                           GABORTH gadget, and GSpoolerH goes bye-bye!
  85.                                                            
  86.                                                                      That's it! You've installed  the  print  spooler  system for
  87.                                                                                 your next  reboot! If you want to use it -1now-0, just enter the
  88.                                                                                 following two lines at the CLI prompt and you're off:
  89.                                                                
  90.                                                                               Assign SPOOL: RAM:
  91.                                                 Run Spooler
  92.  
  93.  
  94.  
  95.  
  96.  
  97.      G-1Operation-0H
  98.               
  99.               Once the  system  has  been  installed,  you  use  the GPrintH
  100.                                                                                 program to  submit files  to the  printer queue or to obtain
  101.                                                                                 the status of the printer queue.
  102.                                           
  103.                                           
  104.                                                GSubmitting A File For Queued PrintingH
  105.                                           
  106.                                                     In order to submit a file to the  print queue  for printing,
  107.                                                                                 you use the GPrintH command in the following format:
  108.                                                             
  109.                                                                            Print [[<tof_flags>] [<path>]<filename>]
  110.                                                        
  111.                                                                  Optional items  are enclosed  in square brackets ("[]"), and
  112.                                                                                 the stuff inside angle  brackets ("<>")  are descriptions of
  113.                                                                                 what you enter.
  114.                          
  115.                          
  116.                                    If you enter a line like:
  117.                                    
  118.                                                   Print df0:s/Startup-Sequence
  119.                                            
  120.                                                      the program  verifies that the file exists, assigns it a job
  121.                                                                                 number, then places it  into the  queue for  printing. GPrintH
  122.                                                                                 will display a message like:
  123.                                       
  124.                                                      **PRINT-S-SUCCESS: Job n submitted to queue
  125.                                                           
  126.                                                                     This indicates  that the  file is  in the  queue and will be
  127.                                                                                 printed. Both GPrintH and  GSpoolerH use  a similar  format: two
  128.                                                                                 asterisks  ("*"),  the  program  name,  a  dash, a character
  129.                                                                                 indicating the type of  message  ("S"  for  status,  "W" for
  130.                                                                                 warnings, "E" for errors), another dash, a shortened form of
  131.                                                                                 message, and finally, the full message text.
  132.                                                       
  133.                                                                 If you have special paper handling problems on  your printer
  134.                                                                                 such as  tractors and such, you can also tell GPrintH to print
  135.                                                                                 out a form feed  in one  of three  different manners: before
  136.                                                                                 printing the  file, after  printing the file, or both before
  137.                                                                                 -1and-0 after printing the file. You do this by placing a letter
  138.                                                                                 between  the  "Print"  command  and the file name. The valid
  139.                                                                                 letters are:
  140.                       
  141.                                      H or h    Print a form feed before the file (-1H-0ead)
  142.                                                                                 T or t    Print a form feed after the file (-1T-0ail)
  143.                                                                                B or b    Print a form feed before and after (-1B-0oth)
  144.                                                                                  K or k    Remove queue entry (don't print it)
  145.  
  146.  
  147.  
  148.  
  149.  
  150.           Some examples:
  151.                         
  152.                                        Print h df0:s/Startup-Sequence
  153.                                                                            -- Form feed before the file
  154.                                                           
  155.                                                                          Print t df0:s/Startup-Sequence
  156.                                                                            -- Form feed after the file
  157.                                                          
  158.                                                                         Print b df0:s/Startup-Sequence
  159.                                                                            -- Form feed before and after the file
  160.                                                                     
  161.                                                                               When you  enter the  filename to  be printed,  you may enter
  162.                                                                                 just  a  filename  or  the  entire path. If you enter just a
  163.                                                                                 filename, then GPrintH assumes that the file is in the current
  164.                                                                                 directory,  figures  out  which  directory  you  are in, and
  165.                                                                                 prepends the filename  with  the  directory  path.  In other
  166.                                                                                 words,  once  a  file  is  in  the  queue,  you  can  change
  167.                                                                                 directories, and GPrintH will still find  your file  and print
  168.                                                                                 it. If  you enter  the full  path, GPrintH assumes that you've
  169.                                                                                 given it all that it needs to find the file.
  170.                                                       
  171.  
  172.  
  173.  
  174.  
  175.  
  176.      GRemoving A File From QueueH
  177.                                
  178.                                          This is a special form of print submission. Use the "GkH" flag
  179.                                                                                 rather than  "GhH", "GtH",  or "GbH". The "GkH" flag means "Kill the
  180.                                                                                 entry". You can only kill  the  entry  -1before-0  it  starts to
  181.                                                                                 print. If  it starts  to print,  it will finish printing. Be
  182.                                                                                 careful!
  183.                   
  184.                   
  185.                        GDisplaying Queue StatusH
  186.                             
  187.                                       Entering  the  GPrintH  command  all  alone  will  display the
  188.                                                                                 current  status  of  the  print queue. The display will look
  189.                                                                                 like:
  190.                
  191.                **PRINT-S-DSPQUE: Display printer queue status:
  192.                                                                                Job 1, File: DF0:s/Startup-Sequence, Status: Pending
  193.                                                                      
  194.                                                                                The first line is a message  from GPrintH  confirming what you
  195.                                                                                 asked for.  The next  line shows  a file  which is currently
  196.                                                                                 waiting to  be printed.  The job  number is  merely a number
  197.                                                                                 which indicates  when the  file was  submitted to the queue.
  198.                                                                                 The file name with path is shown next, followed by the files
  199.                                                                                 printing status. This status can be of four different types:
  200.                                                                       
  201.                                                                                      Pending:       File is waiting to be printed
  202.                                                                           Printing:      File is currently being printed
  203.                                                                             Finished:      File has been fully printed
  204.                                                                         Removed:       File entry has been removed from queue
  205.                                                                                    Not Found:     File not found
  206.                                             
  207.                                                       The "not  found" status  usually occurs  if you queue a file
  208.                                                                                 for printing, then  delete  it  before  it's  printed. GPrintH
  209.                                                                                 always verifies that the file exists before it is queued for
  210.                                                                                 printing.
  211.                     p0xP